|
1 | | -#!/usr/bin/env python |
2 | | -"""HTTPS Everywhere.""" |
| 1 | +#!/usr/bin/env python3 |
3 | 2 |
|
4 | | -""" |
5 | | -Copyright 2020 John Vandenberg |
| 3 | +from setuptools import setup |
6 | 4 |
|
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