@@ -24,6 +24,9 @@ def scm_config():
2424
2525 sys .path .insert (0 , src )
2626 pkg_resources .working_set .add_entry (src )
27+ # FIXME: remove debug
28+ print (src )
29+ print (pkg_resources .working_set )
2730 from setuptools_scm .hacks import parse_pkginfo
2831 from setuptools_scm .git import parse as parse_git
2932 from setuptools_scm .version import guess_next_dev_version , get_local_node_and_date
@@ -46,79 +49,5 @@ def parse(root):
4649 return dict (version = get_version (root = here , parse = parse , ** config ))
4750
4851
49- with open ("README.rst" ) as fp :
50- long_description = fp .read ()
51-
52-
53- arguments = dict (
54- name = "setuptools_scm" ,
55- url = "https://github.com/pypa/setuptools_scm/" ,
56- zip_safe = True ,
57- author = "Ronny Pfannschmidt" ,
58- 59- description = ("the blessed package to manage your versions by scm tags" ),
60- long_description = long_description ,
61- license = "MIT" ,
62- packages = ["setuptools_scm" ],
63- package_dir = {"" : "src" },
64- entry_points = """
65- [distutils.setup_keywords]
66- use_scm_version = setuptools_scm.integration:version_keyword
67-
68- [setuptools.file_finders]
69- setuptools_scm = setuptools_scm.integration:find_files
70-
71- [setuptools.finalize_distribution_options]
72- setuptools_scm = setuptools_scm.integration:infer_version
73-
74- [setuptools_scm.parse_scm]
75- .hg = setuptools_scm.hg:parse
76- .git = setuptools_scm.git:parse
77-
78- [setuptools_scm.parse_scm_fallback]
79- .hg_archival.txt = setuptools_scm.hg:parse_archival
80- PKG-INFO = setuptools_scm.hacks:parse_pkginfo
81- pip-egg-info = setuptools_scm.hacks:parse_pip_egg_info
82- setup.py = setuptools_scm.hacks:fallback_version
83-
84- [setuptools_scm.files_command]
85- .hg = setuptools_scm.file_finder_hg:hg_find_files
86- .git = setuptools_scm.file_finder_git:git_find_files
87-
88- [setuptools_scm.version_scheme]
89- guess-next-dev = setuptools_scm.version:guess_next_dev_version
90- post-release = setuptools_scm.version:postrelease_version
91- python-simplified-semver = setuptools_scm.version:simplified_semver_version
92- release-branch-semver = setuptools_scm.version:release_branch_semver
93-
94- [setuptools_scm.local_scheme]
95- node-and-date = setuptools_scm.version:get_local_node_and_date
96- node-and-timestamp = \
97- setuptools_scm.version:get_local_node_and_timestamp
98- dirty-tag = setuptools_scm.version:get_local_dirty_tag
99- no-local-version = setuptools_scm.version:get_no_local_node
100- """ ,
101- classifiers = [
102- "Development Status :: 4 - Beta" ,
103- "Intended Audience :: Developers" ,
104- "License :: OSI Approved :: MIT License" ,
105- "Programming Language :: Python" ,
106- "Programming Language :: Python :: 2" ,
107- "Programming Language :: Python :: 3" ,
108- "Programming Language :: Python :: 2.7" ,
109- "Programming Language :: Python :: 3.4" ,
110- "Programming Language :: Python :: 3.5" ,
111- "Programming Language :: Python :: 3.6" ,
112- "Programming Language :: Python :: 3.7" ,
113- "Topic :: Software Development :: Libraries" ,
114- "Topic :: Software Development :: Version Control" ,
115- "Topic :: System :: Software Distribution" ,
116- "Topic :: Utilities" ,
117- ],
118- python_requires = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" ,
119- extras_require = dict (toml = ["toml" , "setuptools>=42" ]),
120- )
121-
12252if __name__ == "__main__" :
123- arguments .update (scm_config ())
124- setuptools .setup (** arguments )
53+ setuptools .setup (** scm_config ())
0 commit comments