Skip to content

Commit

Permalink
Remove setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jan 12, 2024
1 parent d8cb48a commit 98d4ea3
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 84 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERS }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
18 changes: 0 additions & 18 deletions MANIFEST

This file was deleted.

16 changes: 0 additions & 16 deletions Makefile

This file was deleted.

82 changes: 82 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[project]
name = "cookiecutter-pypackage"
version = "0.0.1"
dynamic = [
"dependencies",
]
description = "A cookiecutter template for creating Python packages"
readme = "README.md"
requires-python = ">=3.8"
keywords = [
"cookiecutter-pypackage",
]
license = {text = "MIT License"}
authors = [
{name = "Qiusheng Wu", email = "giswqs@gmail.com"},
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"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",
]

[project.entry-points."console_scripts"]
cookiecutter_pypackage = "cookiecutter_pypackage.cli:main"

[project.optional-dependencies]
all = [
"cookiecutter-pypackage[extra]",
]

extra = [
"pandas",
]


[tool]
[tool.setuptools.packages.find]
include = ["cookiecutter_pypackage*"]
exclude = ["docs*"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}


[tool.distutils.bdist_wheel]
universal = true


[tool.bumpversion]
current_version = "0.0.1"
commit = true
tag = true

[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "cookiecutter_pypackage/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'


[tool.flake8]
exclude = [
"docs",
]
max-line-length = 88


[project.urls]
Homepage = "https://github.com/opengeos/cookiecutter-pypackage"

[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
2 changes: 0 additions & 2 deletions pytest.ini

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@

cookiecutter
7 changes: 0 additions & 7 deletions requirements_dev.txt

This file was deleted.

11 changes: 0 additions & 11 deletions setup.cfg

This file was deleted.

28 changes: 0 additions & 28 deletions setup.py

This file was deleted.

0 comments on commit 98d4ea3

Please sign in to comment.