Skip to content

Commit 392ca30

Browse files
committed
feat: ci publishing and pyproject.toml
1 parent 596ce89 commit 392ca30

File tree

4 files changed

+80
-30
lines changed

4 files changed

+80
-30
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2+
on: push
3+
jobs:
4+
build-n-publish:
5+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@master
9+
- name: Set up Python 3.10
10+
uses: actions/setup-python@v3
11+
with:
12+
python-version: "3.10"
13+
- name: Install pypa/build
14+
run: python -m pip install build --user
15+
- name: Build a binary wheel and a source tarball
16+
run: python -m build --sdist --wheel --outdir dist/
17+
- name: Publish distribution 📦 to Test PyPI
18+
uses: pypa/gh-action-pypi-publish@release/v1
19+
with:
20+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
21+
repository_url: https://test.pypi.org/legacy/
22+
- name: Publish distribution 📦 to PyPI
23+
if: startsWith(github.ref, 'refs/tags')
24+
uses: pypa/gh-action-pypi-publish@release/v1
25+
with:
26+
password: ${{ secrets.PYPI_API_TOKEN }}
27+

pyproject.toml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
[project]
2+
name = "django-fixture-magic"
3+
description = "A few extra management tools to handle fixtures."
4+
authors = [
5+
{ name: "Dave Dash", email="[email protected]"}
6+
]
7+
license = {file = LICENSE}
8+
readmd = "README.rst"
9+
requires-python = ">= 2.6"
10+
classifiers = [
11+
"Development Status :: 4 - Beta",
12+
"Environment :: Web Environment",
13+
"Framework :: Django",
14+
"Framework :: Django :: 1.8",
15+
"Framework :: Django :: 1.9",
16+
"Framework :: Django :: 1.10",
17+
"Framework :: Django :: 1.11",
18+
"Framework :: Django :: 2.0",
19+
"Framework :: Django :: 2.1",
20+
"Intended Audience :: Developers",
21+
"License :: OSI Approved :: BSD License",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python :: 2",
24+
"Programming Language :: Python :: 3",
25+
"Topic :: Software Development :: Libraries :: Python Modules"
26+
]
27+
dependencies = [
28+
"future==0.15.2"
29+
]
30+
31+
32+
[project.optional-dependencies]
33+
test= [
34+
"pytest==2.3.5"
35+
"pytest-cov==1.6"
36+
]
37+
38+
39+
[project.urls]
40+
documentation = http://github.com/davedash/django-fixture-magic
41+
homepage = http://github.com/davedash/django-fixture-magic
42+
repository = http://github.com/davedash/django-fixture-magic
43+
tracker = http://github.com/davedash/django-fixture-magic/issues
44+
45+
46+
[build-system]
47+
requires = ["setuptools", "setuptools_scm[toml]>=6.2"]
48+
build-backend = "setuptools.build_meta"
49+
50+
51+
[tool.setuptools_scm]
52+
write_to = "fixture_magic/_version.py"
53+
git_describe_command = "git describe --dirty --tags --long --match v* --first-parent"

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)