Skip to content

Commit

Permalink
Better setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
excitoon committed Aug 28, 2022
1 parent a972f41 commit 14ed1b0
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 39 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
@@ -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
Binary file modified examples/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 39 additions & 38 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
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="[email protected]",
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(),
)
3 changes: 2 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def test_simple(self):
│ └── workflows
│ ├── black.yml
│ ├── macos.yml
│ ├── setup.yml
│ ├── ubuntu.yml
│ └── windows.yml
├── .gitignore
Expand All @@ -37,6 +38,6 @@ def test_simple(self):
├── setup.py
└── tests.py
3 directories, 14 files
3 directories, 15 files
""".lstrip().encode(),
)

0 comments on commit 14ed1b0

Please sign in to comment.