|
16 | 16 | from setuptools import setup, Extension |
17 | 17 | from setuptools.command.build_ext import build_ext |
18 | 18 | from setuptools.command.sdist import sdist as orig_sdist |
19 | | -from packaging.version import Version |
20 | 19 |
|
21 | 20 | BASEDIR = os.path.split(os.path.abspath(__file__))[0] |
22 | 21 |
|
23 | | -class Pyosmium_sdist(orig_sdist): |
| 22 | +class PyosmiumSDist(orig_sdist): |
24 | 23 |
|
25 | 24 | contrib = ( |
26 | 25 | ('libosmium', 'https://github.com/osmcode/libosmium/archive/v{}.tar.gz'), |
@@ -133,52 +132,9 @@ def build_extension(self, ext): |
133 | 132 |
|
134 | 133 | versions = get_versions() |
135 | 134 |
|
136 | | -if sys.version_info < (3,7): |
137 | | - raise RuntimeError("Python 3.7 or larger required.") |
138 | | - |
139 | | -with open('README.rst', 'r') as descfile: |
140 | | - long_description = descfile.read() |
141 | | - |
142 | 135 | setup( |
143 | | - name='osmium', |
144 | | - version=versions['pyosmium_release'], |
145 | | - description='Python bindings for libosmium, the data processing library for OSM data', |
146 | | - long_description=long_description, |
147 | | - author='Sarah Hoffmann', |
148 | | - |
149 | | - maintainer='Sarah Hoffmann', |
150 | | - maintainer_email='[email protected]', |
151 | | - download_url='https://github.com/osmcode/pyosmium', |
152 | | - url='https://osmcode.org/pyosmium', |
153 | | - keywords=["OSM", "OpenStreetMap", "Osmium"], |
154 | | - license='BSD', |
155 | 136 | scripts=['tools/pyosmium-get-changes', 'tools/pyosmium-up-to-date'], |
156 | | - classifiers = [ |
157 | | - "Development Status :: 5 - Production/Stable", |
158 | | - "Intended Audience :: Developers", |
159 | | - "License :: OSI Approved :: BSD License", |
160 | | - "Programming Language :: Python :: 3.7", |
161 | | - "Programming Language :: Python :: 3.8", |
162 | | - "Programming Language :: Python :: 3.9", |
163 | | - "Programming Language :: Python :: 3.10", |
164 | | - "Programming Language :: Python :: 3.11", |
165 | | - "Programming Language :: Python :: 3.12", |
166 | | - "Programming Language :: Python :: 3.13", |
167 | | - "Programming Language :: Python :: Implementation :: CPython", |
168 | | - "Programming Language :: C++", |
169 | | - ], |
170 | | - |
171 | 137 | ext_modules=[CMakeExtension('cmake_example')], |
172 | | - packages = ['osmium', 'osmium/osm', 'osmium/replication'], |
173 | | - package_dir = {'' : 'src'}, |
174 | | - package_data = { 'osmium': ['py.typed', '*.pyi', |
175 | | - 'replication/_replication.pyi', |
176 | | - 'osm/_osm.pyi']}, |
177 | | - python_requires = ">=3.7", |
178 | | - install_requires = ['requests'], |
179 | | - extras_require = { |
180 | | - 'tests': ['pytest', 'pytest-httpserver', 'werkzeug', 'shapely'], |
181 | | - }, |
182 | | - cmdclass=dict(build_ext=CMakeBuild, sdist=Pyosmium_sdist), |
| 138 | + cmdclass=dict(build_ext=CMakeBuild, sdist=PyosmiumSDist), |
183 | 139 | zip_safe=False, |
184 | 140 | ) |
0 commit comments