Skip to content

Commit

Permalink
Move static metadata from setup.py to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaEsmukov committed Nov 12, 2022
1 parent d4c288d commit 83aab9c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 36 deletions.
39 changes: 39 additions & 0 deletions setup.cfg
Expand Up @@ -6,3 +6,42 @@ max-line-length = 90
known_first_party = test
multi_line_output = 3
profile = black

[metadata]
classifier =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Topic :: Scientific/Engineering :: GIS
Topic :: Software Development :: Libraries :: Python Modules
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
description = Python Geocoding Toolbox
keywords = geocode, geocoding, gis, geographical, maps, earth, distance
license = MIT
long_description = file: README.rst
maintainer = Kostya Esmukov
maintainer_email = kostya@esmukov.ru
name = geopy
url = https://github.com/geopy/geopy
version = attr: geopy.__version__

[options]
install_requires =
geographiclib<3,>=1.52
packages = find:
python_requires = >=3.7

[options.packages.find]
exclude =
test*
37 changes: 1 addition & 36 deletions setup.py
@@ -1,13 +1,9 @@
#!/usr/bin/env python

from setuptools import find_packages, setup
from setuptools import setup

from geopy import __version__ as version

INSTALL_REQUIRES = [
'geographiclib<3,>=1.52',
]

EXTRAS_DEV_LINT = [
"flake8>=5.0,<5.1",
"isort>=5.10.0,<5.11.0",
Expand All @@ -28,18 +24,9 @@
]

setup(
name='geopy',
version=version,
description='Python Geocoding Toolbox',
long_description=open('README.rst').read(),
maintainer='Kostya Esmukov',
maintainer_email='kostya@esmukov.ru',
url='https://github.com/geopy/geopy',
download_url=(
'https://github.com/geopy/geopy/archive/%s.tar.gz' % version
),
packages=find_packages(exclude=["*test*"]),
install_requires=INSTALL_REQUIRES,
extras_require={
"dev": sorted(set(
EXTRAS_DEV_LINT +
Expand All @@ -62,26 +49,4 @@
],
"timezone": ["pytz"],
},
license='MIT',
keywords='geocode geocoding gis geographical maps earth distance',
python_requires=">=3.7",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)

0 comments on commit 83aab9c

Please sign in to comment.