Skip to content

Commit 9f08b89

Browse files
committed
update to pyproject.toml instead of setup.py
1 parent ceaf17e commit 9f08b89

File tree

6 files changed

+62
-100
lines changed

6 files changed

+62
-100
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ on:
77

88
jobs:
99
deploy:
10+
name: "Build Distribution"
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v4
1314
- name: Set up Python
1415
uses: actions/setup-python@v4
1516
with:
1617
python-version: "3.x"
17-
- name: Install dependencies
18-
run: |
19-
python --version
20-
python -m pip install --upgrade pip
21-
pip install setuptools wheel twine
22-
pip install numpy==2.3.1
18+
- name: Install pypa/build
19+
run: >-
20+
python3 -m
21+
pip install
22+
build twine
2323
- name: Build and publish
2424
env:
2525
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
2626
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
2727
run: |
28-
python setup.py sdist bdist_wheel
29-
twine upload --repository pypi dist/*
28+
python3 -m build
29+
twine upload --repository pypi dist/*

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors:
55
given-names: "Thomas Andrew"
66
orcid: "https://orcid.org/0000-0001-8962-8571"
77
title: "Fast Stylometry (Computer software)"
8-
version: 1.0.11
8+
version: 1.0.12
99
doi: 10.5281/zenodo.11096941
1010
date-released: 2024-05-01
1111
url: "https://fastdatascience.com/fast-stylometry-python-library"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ A BibTeX entry for LaTeX users is:
212212
```
213213
@software{faststylometry,
214214
author = {Wood, T.A.},
215-
title = {Fast Stylometry (Computer software), Version 1.0.11},
215+
title = {Fast Stylometry (Computer software), Version 1.0.12},
216216
year = {2024},
217217
url = {https://fastdatascience.com/fast-stylometry-python-library/},
218218
doi = {10.5281/zenodo.11096941},

pyproject.toml

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
[project]
2+
name = "faststylometry"
3+
version = "1.0.12"
4+
description = 'Python library for calculating the Burrows Delta.'
5+
readme = "README.md"
6+
keywords = ['stylometry', 'nlp', 'burrows delta', 'delta', 'forensic stylometry', 'natural language processing']
7+
license = { file = "LICENSE" }
8+
maintainers = [
9+
{ name = "Thomas Wood", email = "[email protected]" },
10+
]
11+
authors = [
12+
{ name = "Thomas Wood", email = "[email protected]" },
13+
]
14+
requires-python = ">=3.12,<=3.13.3"
15+
classifiers = [
16+
# see https://pypi.org/classifiers/
17+
"Development Status :: 5 - Production/Stable",
18+
"Intended Audience :: Developers",
19+
"Topic :: Software Development :: Build Tools",
20+
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3 :: Only",
23+
"License :: OSI Approved :: MIT License",
24+
"Operating System :: OS Independent",
25+
"Topic :: Text Processing :: Linguistic",
26+
"Intended Audience :: Science/Research",
27+
"Intended Audience :: Healthcare Industry",
28+
"Intended Audience :: Information Technology",
29+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
30+
]
31+
# core dependencies of harmony
32+
# this set should be kept minimal!
33+
dependencies = [
34+
"numpy>=2.3.1; python_version >= '3.12'",
35+
"pandas>=2.3.1; python_version >= '3.12'",
36+
"scikit-learn>=1.7.1; python_version >= '3.12'",
37+
"wget>=3.2; python_version >= '3.12'",
38+
]
39+
40+
[project.optional-dependencies]
41+
42+
# dev - the developer dependency set, for contributors to harmony
43+
dev = ["check-manifest", "pytest"]
44+
45+
[project.urls]
46+
"Documentation" = "https://fastdatascience.com/fast-stylometry-python-library",
47+
"Bug Reports" = "https://github.com/fastdatascience/faststylometry/issues",
48+
"Source Code" = "https://github.com/fastdatascience/faststylometry",
49+
150
[build-system]
2-
requires = ["setuptools>=46.4.0", "wheel", "numpy>=2.3.1"]
3-
build-backend = "setuptools.build_meta"
51+
requires = ["setuptools>=46.4.0", "wheel", "twine"]
52+
build-backend = "setuptools.build_meta"

setup.py

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

src/faststylometry/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
'''
2929

30-
__version__ = "1.0.11"
30+
__version__ = "1.0.12"
3131

3232

3333
from faststylometry.corpus import Corpus

0 commit comments

Comments
 (0)