Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix package metadata and update to pyproject.toml #690

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include ChangeLog
include README.md
include docs/*
include docs/**/*
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ pip install gcalcli
```sh
git clone https://github.com/insanum/gcalcli.git
cd gcalcli
python setup.py install
pip install .
```

### Install optional package

```sh
pip install vobject
pip install .[vobject]
```

Features
Expand Down
2 changes: 0 additions & 2 deletions mypy.ini

This file was deleted.

63 changes: 63 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[build-system]
requires = ["setuptools >= 61"]
build-backend = "setuptools.build_meta"

[project]
name = "gcalcli"
dynamic = ["version"]
requires-python = ">= 3.8"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Eric Davis", email = "edavis@insanum.com" },
{ name = "Brian Hartvigsen", email = "brian.andrew@brianandjenny.com" },
{ name = "Joshua Crowgey", email = "jcrowgey@uw.edu" },
]
maintainers = [
{ name = "Joshua Crowgey", email = "jcrowgey@uw.edu" },
]
description = "Google Calendar Command Line Interface"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
dependencies = [
"python-dateutil",
"google-api-python-client>=1.4",
"httplib2",
"google_auth_oauthlib",
"parsedatetime",
]

[project.urls]
Homepage = "https://github.com/insanum/gcalcli"
Repository = "https://github.com/insanum/gcalcli"

[project.optional-dependencies]
vobject = ["vobject"]

[tool.setuptools.data-files]
"share/man/man1" = ["docs/man1/gcalcli.1"]

[tool.setuptools.dynamic]
version = { attr = "gcalcli.__version__" }

[project.scripts]
gcalcli = "gcalcli.cli:main"

[tool.distutils.bdist_wheel]
universal = true

[tool.isort]
profile = "google"
force_single_line = false
float_to_top = true
combine_star = true
py_version = 3

[[tool.mypy.overrides]]
module = ["gcalcli"]
ignore_missing_imports = true
10 changes: 0 additions & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
[bdist_wheel]
universal = 1

[flake8]
import-order-style = google

[isort]
profile=google
force_single_line=False
float_to_top=True
combine_star=True
py_version=3
55 changes: 1 addition & 54 deletions setup.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,56 +1,3 @@
#!/usr/bin/env python
from setuptools import setup

from gcalcli import __version__

try:
import pypandoc
long_description = pypandoc.convert_file(
'README.md',
'rst',
format='markdown_github',
extra_args=("--wrap=none",)
)
except ImportError:
import sys
print('Warning: No long description generated.', file=sys.stderr)
long_description = ''

author_emails = ['edavis@insanum.com',
'brian.andrew@brianandjenny.com',
'jcrowgey@uw.edu']

setup(name='gcalcli',
version=__version__,
author='Eric Davis, Brian Hartvigsen, Joshua Crowgey',
author_email=', '.join(author_emails),
maintainer='Joshua Crowgey',
maintainer_email='jcrowgey@uw.edu',
description='Google Calendar Command Line Interface',
long_description=long_description,
url='https://github.com/insanum/gcalcli',
license='MIT',
packages=['gcalcli'],
data_files=[('share/man/man1', ['docs/man1/gcalcli.1'])],
python_requires='>=3.8',
install_requires=[
'python-dateutil',
'google-api-python-client>=1.4',
'httplib2',
'google_auth_oauthlib',
'parsedatetime',
],
extras_require={
'vobject': ["vobject"],
},
entry_points={
'console_scripts':
['gcalcli=gcalcli.cli:main'],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
])
setup()