Skip to content

Commit

Permalink
Migrate to pyproject.toml (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan authored Dec 7, 2023
1 parent 2df8d6d commit 3746d9a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 2,375 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,6 @@ dmypy.json
# End of https://www.gitignore.io/api/pycharm,python,visualstudiocode

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

wordcloud/_version.py
wordcloud/query_integral_image.c
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[build-system]
requires = ["setuptools", "Cython>=0.29.33", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "wordcloud"
authors = [{ name = "Andreas Mueller", email = "[email protected]" }]
description = "A little word cloud generator"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.7"
license = { text = "MIT License" }
dependencies = ["numpy>=1.6.1", "pillow", "matplotlib"]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/amueller/word_cloud"

[project.scripts]
wordcloud_cli = "wordcloud.__main__:main"

[tool.setuptools]
packages = ["wordcloud"]

[tool.setuptools_scm]
write_to = "wordcloud/_version.py"
7 changes: 0 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,3 @@ exclude = .git,.idea,.eggs,__pycache__,dist,doc/_build,doc/auto_examples,doc/con

[tool:pytest]
addopts = -v --cov --cov-report xml --tb=short

[versioneer]
VCS = git
versionfile_source = wordcloud/_version.py
versionfile_build = wordcloud/_version.py
style = pep440-post
tag_prefix = ''
24 changes: 1 addition & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
import io
from setuptools import setup
import versioneer

from Cython.Build import cythonize

with io.open('README.md', encoding='utf_8') as fp:
readme = fp.read()

setup(
author="Andreas Mueller",
author_email="[email protected]",
name='wordcloud',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
url='https://github.com/amueller/word_cloud',
description='A little word cloud generator',
long_description=readme,
long_description_content_type='text/markdown; charset=UTF-8',
license='MIT',
install_requires=['numpy>=1.6.1', 'pillow', 'matplotlib'],
ext_modules=cythonize("wordcloud/query_integral_image.pyx"),
entry_points={'console_scripts': ['wordcloud_cli=wordcloud.__main__:main']},
packages=['wordcloud'],
package_data={'wordcloud': ['stopwords', 'DroidSansMono.ttf']}
)
setup(ext_modules=cythonize("wordcloud/query_integral_image.pyx"))
Loading

0 comments on commit 3746d9a

Please sign in to comment.