Skip to content

Commit 4d408d8

Browse files
committed
setup.py/pyproject.toml: Update, correct and tweaks
1 parent 14c409e commit 4d408d8

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# =============================================================================
22
# PACKAGING: parse_type
33
# =============================================================================
4+
# SPDX-License-Identifier: MIT
45
# SEE ALSO:
56
# * https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
67
# * https://setuptools-scm.readthedocs.io/en/latest/usage/
@@ -22,13 +23,13 @@ dynamic = ["version"]
2223
readme = "README.rst"
2324
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
2425
keywords = ["parse", "parsing"]
25-
license = {text = "MIT"}
26+
license = "MIT"
27+
license-files = ["LICENSE"]
2628
classifiers = [
2729
"Development Status :: 5 - Production/Stable",
2830
"Environment :: Console",
2931
"Environment :: Web Environment",
3032
"Intended Audience :: Developers",
31-
"License :: OSI Approved :: MIT License",
3233
"Operating System :: OS Independent",
3334
"Programming Language :: Python :: 2.7",
3435
"Programming Language :: Python :: 3.2",
@@ -57,8 +58,8 @@ dependencies = [
5758
[project.urls]
5859
Homepage = "https://github.com/jenisys/parse_type"
5960
Download = "https://pypi.org/project/parse_type/"
60-
"Source Code" = "https://github.com/jenisys/parse_type"
61-
"Issue Tracker" = "https://github.com/jenisys/parse_type/issues/"
61+
Repository = "https://github.com/jenisys/parse_type"
62+
Issues = "https://github.com/jenisys/parse_type/issues/"
6263

6364

6465
[project.optional-dependencies]
@@ -94,7 +95,7 @@ testing = [
9495
"pytest-html >= 1.19.0",
9596
]
9697

97-
98+
# -- KEEP-UNTIL: Python 2.7 support is removed.
9899
[tool.distutils.bdist_wheel]
99100
universal = true
100101

setup.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3+
# SPDX-License-Identifier: MIT
34
"""
45
Setup script for "parse_type" package.
56
@@ -31,8 +32,8 @@
3132
# PREPARE SETUP:
3233
# -----------------------------------------------------------------------------
3334
HERE = os.path.dirname(__file__)
34-
README = os.path.join(HERE, "README.rst")
35-
long_description = ''.join(open(README).readlines()[4:])
35+
# DISABLED: README = os.path.join(HERE, "README.rst")
36+
# DISABLED: long_description = "".join(open(README).readlines()[4:])
3637

3738

3839
# -----------------------------------------------------------------------------
@@ -71,12 +72,19 @@ def get_this_package_version(version):
7172
url = "https://github.com/jenisys/parse_type",
7273
download_url= "http://pypi.python.org/pypi/parse_type",
7374
description = "Simplifies to build parse types based on the parse module",
74-
long_description = long_description,
75+
long_description = "file: README.rst",
76+
long_description_content_type = "text/x-rst",
7577
keywords= "parse, parsing",
7678
license = "MIT",
79+
license_files = ["LICENSE"],
7780
packages = find_packages_by_root_package("parse_type"),
7881
include_package_data = True,
79-
82+
project_urls = {
83+
"Homepage": "https://github.com/jenisys/parse_type",
84+
"Download": "https://pypi.org/project/parse_type/",
85+
"Repository": "https://github.com/jenisys/parse_type",
86+
"Issues": "https://github.com/jenisys/parse_type/issues/",
87+
},
8088
# -- REQUIREMENTS:
8189
python_requires=">=2.7, !=3.0.*, !=3.1.*",
8290
setup_requires=[
@@ -130,7 +138,6 @@ def get_this_package_version(version):
130138
"Environment :: Console",
131139
"Environment :: Web Environment",
132140
"Intended Audience :: Developers",
133-
"License :: OSI Approved :: MIT License",
134141
"Operating System :: OS Independent",
135142
"Programming Language :: Python :: 2.7",
136143
"Programming Language :: Python :: 3.2",

0 commit comments

Comments
 (0)