Skip to content

Commit e6a61e0

Browse files
committed
Add setup.cfg (setuptools declarative syntax) generated using setuptools-py2cfg.
1 parent 222ad6c commit e6a61e0

File tree

2 files changed

+60
-84
lines changed

2 files changed

+60
-84
lines changed

setup.cfg

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,58 @@
11
[metadata]
2-
description-file = README.md
2+
name = python-fsutil
3+
version = 0.8.0
4+
author = Fabio Caccamo
5+
author_email = [email protected]
6+
description = file-system utilities for lazy devs.
7+
keywords =
8+
python
9+
file
10+
system
11+
util
12+
utils
13+
utility
14+
utilities
15+
dir
16+
directory
17+
path
18+
fs
19+
os
20+
shutil
21+
glob
22+
url = https://github.com/fabiocaccamo/python-fsutil
23+
download_url = https://github.com/fabiocaccamo/python-fsutil/archive/0.8.0.tar.gz
24+
long_description = file: README.md
25+
long_description_content_type = text/markdown
26+
classifiers =
27+
Development Status :: 5 - Production/Stable
28+
Environment :: MacOS X
29+
Environment :: Web Environment
30+
Intended Audience :: Developers
31+
Intended Audience :: System Administrators
32+
License :: OSI Approved :: MIT License
33+
Natural Language :: English
34+
Operating System :: OS Independent
35+
Programming Language :: Python :: 3
36+
Programming Language :: Python :: 3.8
37+
Programming Language :: Python :: 3.9
38+
Programming Language :: Python :: 3.10
39+
Programming Language :: Python :: 3.11
40+
Programming Language :: Python :: Implementation :: PyPy
41+
Topic :: Desktop Environment :: File Managers
42+
Topic :: Software Development :: Build Tools
43+
Topic :: Software Development :: Libraries :: Python Modules
44+
Topic :: System :: Filesystems
45+
Topic :: Utilities
46+
project_urls =
47+
Documentation = https://github.com/fabiocaccamo/python-fsutil#readme
48+
Issues = https://github.com/fabiocaccamo/python-fsutil/issues
49+
Funding = https://github.com/sponsors/fabiocaccamo/
50+
Twitter = https://twitter.com/fabiocaccamo
51+
52+
[options]
53+
packages = find:
54+
install_requires =
55+
include_package_data = True
56+
57+
[options.packages.find]
58+
exclude = contrib; docs; tests*

setup.py

Lines changed: 3 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,4 @@
1-
#!/usr/bin/env python
1+
from setuptools import setup
22

3-
import os
4-
import sys
5-
6-
from setuptools import find_packages, setup
7-
8-
exec(open("fsutil/metadata.py").read())
9-
10-
package_name = "python-fsutil"
11-
package_url = f"https://github.com/fabiocaccamo/{package_name}"
12-
package_path = os.path.abspath(os.path.dirname(__file__))
13-
download_url = f"{package_url}/archive/{__version__}.tar.gz"
14-
documentation_url = f"{package_url}#readme"
15-
issues_url = f"{package_url}/issues"
16-
sponsor_url = "https://github.com/sponsors/fabiocaccamo/"
17-
twitter_url = "https://twitter.com/fabiocaccamo"
18-
19-
long_description_file_path = os.path.join(package_path, "README.md")
20-
long_description_content_type = "text/markdown"
21-
long_description = ""
22-
try:
23-
with open(long_description_file_path, "r", encoding="utf-8") as f:
24-
long_description = f.read()
25-
except IOError:
26-
pass
27-
28-
setup(
29-
name=package_name,
30-
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
31-
include_package_data=True,
32-
version=__version__,
33-
description=__description__,
34-
long_description=long_description,
35-
long_description_content_type=long_description_content_type,
36-
author=__author__,
37-
author_email=__email__,
38-
url=package_url,
39-
download_url=download_url,
40-
project_urls={
41-
"Documentation": documentation_url,
42-
"Issues": issues_url,
43-
"Funding": sponsor_url,
44-
"Twitter": twitter_url,
45-
},
46-
keywords=[
47-
"python",
48-
"file",
49-
"system",
50-
"util",
51-
"utils",
52-
"utility",
53-
"utilities",
54-
"dir",
55-
"directory",
56-
"path",
57-
"fs",
58-
"os",
59-
"shutil",
60-
"glob",
61-
],
62-
install_requires=[],
63-
classifiers=[
64-
"Development Status :: 5 - Production/Stable",
65-
"Environment :: MacOS X",
66-
"Environment :: Web Environment",
67-
"Intended Audience :: Developers",
68-
"Intended Audience :: System Administrators",
69-
"License :: OSI Approved :: MIT License",
70-
"Natural Language :: English",
71-
"Operating System :: OS Independent",
72-
"Programming Language :: Python :: 3",
73-
"Programming Language :: Python :: 3.8",
74-
"Programming Language :: Python :: 3.9",
75-
"Programming Language :: Python :: 3.10",
76-
"Programming Language :: Python :: 3.11",
77-
"Programming Language :: Python :: Implementation :: PyPy",
78-
"Topic :: Desktop Environment :: File Managers",
79-
"Topic :: Software Development :: Build Tools",
80-
"Topic :: Software Development :: Libraries :: Python Modules",
81-
"Topic :: System :: Filesystems",
82-
"Topic :: Utilities",
83-
],
84-
)
3+
if __name__ == "__main__":
4+
setup()

0 commit comments

Comments
 (0)