diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml new file mode 100644 index 0000000..3bc5d97 --- /dev/null +++ b/.github/workflows/setup.yml @@ -0,0 +1,21 @@ +name: Setup + +on: + push: + branches: [master] + + pull_request: + branches: [master] + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Test setup + run: | + python3 setup.py sdist diff --git a/examples/3.png b/examples/3.png index 024ad94..71d1d0f 100644 Binary files a/examples/3.png and b/examples/3.png differ diff --git a/setup.py b/setup.py index aefbabc..f9ec90a 100644 --- a/setup.py +++ b/setup.py @@ -2,41 +2,42 @@ import setuptools -with open(f"{os.path.dirname(os.path.abspath(__file__))}/README.md") as readme: - setuptools.setup( - name="3-py", - version="1.1.6", - description="`.gitignore`-aware tree tool written in Python", - long_description=readme.read(), - long_description_content_type="text/markdown", - author="Vladimir Chebotarev", - author_email="vladimir.chebotarev@gmail.com", - license="MIT", - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Console", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Topic :: Software Development", - "Topic :: Terminals", - "Topic :: Utilities", - ], - keywords=["git", "gitignore", "tree"], - project_urls={ - "Documentation": "https://github.com/excitoon/3/blob/master/README.md", - "Source": "https://github.com/excitoon/3", - "Tracker": "https://github.com/excitoon/3/issues", - }, - url="https://github.com/excitoon/3", - packages=[], - scripts=["3", "3.cmd"], - install_requires=["gitignorefile"], - ) +with open(f"{os.path.dirname(os.path.abspath(__file__))}/requirements.txt") as requirements: + with open(f"{os.path.dirname(os.path.abspath(__file__))}/README.md") as readme: + setuptools.setup( + name="3-py", + version="1.1.6", + description="`.gitignore`-aware tree tool written in Python", + long_description=readme.read(), + long_description_content_type="text/markdown", + author="Vladimir Chebotarev", + author_email="vladimir.chebotarev@gmail.com", + license="MIT", + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development", + "Topic :: Terminals", + "Topic :: Utilities", + ], + keywords=["git", "gitignore", "tree"], + project_urls={ + "Documentation": "https://github.com/excitoon/3/blob/master/README.md", + "Source": "https://github.com/excitoon/3", + "Tracker": "https://github.com/excitoon/3/issues", + }, + url="https://github.com/excitoon/3", + packages=[], + scripts=["3", "3.cmd"], + install_requires=requirements.read().splitlines(), + ) diff --git a/tests.py b/tests.py index cc6766a..e2ae887 100644 --- a/tests.py +++ b/tests.py @@ -23,6 +23,7 @@ def test_simple(self): │ └── workflows │ ├── black.yml │ ├── macos.yml +│ ├── setup.yml │ ├── ubuntu.yml │ └── windows.yml ├── .gitignore @@ -37,6 +38,6 @@ def test_simple(self): ├── setup.py └── tests.py -3 directories, 14 files +3 directories, 15 files """.lstrip().encode(), )