|
1 |
| -#!/usr/bin/env python |
| 1 | +from setuptools import setup |
2 | 2 |
|
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