-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from graingert/apply-setup-py-upgrade
- Loading branch information
Showing
4 changed files
with
70 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.black] | ||
target_version = ["py36"] | ||
|
||
[tool.setuptools_scm] | ||
local_scheme = "no-local-version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,3 @@ | ||
from setuptools import find_packages, setup | ||
from setuptools import setup | ||
|
||
with open("README.md", encoding="UTF-8") as f: | ||
long_description = f.read() | ||
|
||
|
||
def local_scheme(version): | ||
"""Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2) | ||
to be able to upload to Test PyPI""" | ||
return "" | ||
|
||
|
||
setup( | ||
name="humanize", | ||
description="Python humanize utilities", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author="Jason Moiron", | ||
author_email="jmoiron@jmoiron.net", | ||
maintainer="Hugo van Kemenade", | ||
url="https://github.com/jmoiron/humanize", | ||
project_urls={ | ||
"Source": "https://github.com/jmoiron/humanize", | ||
"Issue tracker": "https://github.com/jmoiron/humanize/issues", | ||
"Funding": "https://tidelift.com/subscription/pkg/pypi-humanize?" | ||
"utm_source=pypi-humanize&utm_medium=pypi", | ||
}, | ||
license="MIT", | ||
keywords="humanize time size", | ||
packages=find_packages(where="src"), | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
use_scm_version={"local_scheme": local_scheme}, | ||
install_requires=["setuptools"], # pkg_resources | ||
setup_requires=["setuptools_scm"], | ||
extras_require={"tests": ["freezegun", "pytest", "pytest-cov"]}, | ||
python_requires=">=3.6", | ||
# Get strings from https://pypi.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Text Processing", | ||
"Topic :: Text Processing :: General", | ||
], | ||
) | ||
setup() |