Skip to content

Commit a07cda2

Browse files
committed
Moved the metadata into setup.cfg.
Version is now fetched from git.
1 parent b25084a commit a07cda2

File tree

3 files changed

+70
-65
lines changed

3 files changed

+70
-65
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

setup.cfg

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
1-
[bdist_wheel]
2-
universal = 1
1+
#Copyright 2020 John Vandenberg
2+
3+
#Licensed under the Apache License, Version 2.0 (the "License");
4+
#you may not use this file except in compliance with the License.
5+
#You may obtain a copy of the License at
6+
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
9+
#Unless required by applicable law or agreed to in writing, software
10+
#distributed under the License is distributed on an "AS IS" BASIS,
11+
#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
#See the License for the specific language governing permissions and
13+
#limitations under the License.
314

415
[metadata]
5-
license_file = LICENSE
16+
name = https-everywhere
17+
author_email = jayvdb@gmail.com
18+
license = Apache-2.0
19+
description = Privacy for Pythons. Requests adapters for HTTPS, including HSTS preloading and HTTPS Everywhere rules
20+
long_description = file: README.md
21+
long_description_content_type = text/markdown
22+
url = https://github.com/jayvdb/https-everywhere-py
23+
classifiers =
24+
Environment :: Console
25+
Environment :: Plugins
26+
Environment :: Web Environment
27+
Intended Audience :: Developers
28+
Intended Audience :: Science/Research
29+
Intended Audience :: System Administrators
30+
License :: OSI Approved :: Apache Software License
31+
Operating System :: OS Independent
32+
Programming Language :: Python :: 2.7
33+
Programming Language :: Python :: 3.4
34+
Programming Language :: Python :: 3.5
35+
Programming Language :: Python :: 3.6
36+
Programming Language :: Python :: 3.7
37+
Programming Language :: Python :: 3.8
38+
Programming Language :: Python :: Implementation :: CPython
39+
Topic :: Internet :: WWW/HTTP :: Browsers
40+
Topic :: Internet :: WWW/HTTP :: Session
41+
Topic :: Security
42+
Development Status :: 4 - Beta
43+
44+
[options]
45+
packages = find:
46+
install_requires =
47+
requests[security]
48+
appdirs
49+
logging-helper
50+
cached-property
51+
52+
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
53+
54+
tests_require =
55+
unittest-expander
56+
lxml # lxml is optional, needed for testing upstream rules
57+
tldextract
58+
regex
59+
60+
[options.packages.find]
61+
exclude =
62+
tests
63+
tests.*

setup.py

Lines changed: 4 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,6 @@
1-
#!/usr/bin/env python
2-
"""HTTPS Everywhere."""
1+
#!/usr/bin/env python3
32

4-
"""
5-
Copyright 2020 John Vandenberg
3+
from setuptools import setup
64

7-
Licensed under the Apache License, Version 2.0 (the "License");
8-
you may not use this file except in compliance with the License.
9-
You may obtain a copy of the License at
10-
11-
http://www.apache.org/licenses/LICENSE-2.0
12-
13-
Unless required by applicable law or agreed to in writing, software
14-
distributed under the License is distributed on an "AS IS" BASIS,
15-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
See the License for the specific language governing permissions and
17-
limitations under the License.
18-
"""
19-
20-
from setuptools import find_packages, setup
21-
22-
__version__ = "0.2.2"
23-
24-
classifiers = """\
25-
Environment :: Console
26-
Environment :: Plugins
27-
Environment :: Web Environment
28-
Intended Audience :: Developers
29-
Intended Audience :: Science/Research
30-
Intended Audience :: System Administrators
31-
License :: OSI Approved :: Apache Software License
32-
Operating System :: OS Independent
33-
Programming Language :: Python :: 2.7
34-
Programming Language :: Python :: 3.4
35-
Programming Language :: Python :: 3.5
36-
Programming Language :: Python :: 3.6
37-
Programming Language :: Python :: 3.7
38-
Programming Language :: Python :: 3.8
39-
Programming Language :: Python :: Implementation :: CPython
40-
Topic :: Internet :: WWW/HTTP :: Browsers
41-
Topic :: Internet :: WWW/HTTP :: Session
42-
Topic :: Security
43-
Development Status :: 4 - Beta
44-
"""
45-
46-
setup(
47-
name="https-everywhere",
48-
version=__version__,
49-
description="Privacy for Pythons. Requests adapters for HTTPS, including HSTS preloading and HTTPS Everywhere rules",
50-
license="Apache-2.0",
51-
author_email="jayvdb@gmail.com",
52-
url="https://github.com/jayvdb/https-everywhere-py",
53-
packages=find_packages(exclude=["tests", "tests.*"]),
54-
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
55-
install_requires=[
56-
"requests[security]",
57-
"appdirs",
58-
"logging-helper",
59-
"cached-property",
60-
],
61-
classifiers=classifiers.splitlines(),
62-
tests_require=["unittest-expander", "lxml", "tldextract", "regex"],
63-
# lxml is optional, needed for testing upstream rules
64-
)
5+
if __name__ == "__main__":
6+
setup()

0 commit comments

Comments
 (0)