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

migrate from setup.* to pyproject.toml #52

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
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
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# VObject
# VObject
[![PyPI version](https://badge.fury.io/py/vobject.svg)](https://pypi.python.org/pypi/vobject)
[![PyPI downloads](https://img.shields.io/pypi/dm/vobject.svg)](https://pypi.python.org/pypi/vobject)
[![Build](https://github.com/py-vobject/vobject/actions/workflows/test.yml/badge.svg)](https://github.com/py-vobject/vobject/actions/workflows/test.yml)
[![License](https://img.shields.io/pypi/l/vobject.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)

VObject is intended to be a full-featured Python package for parsing and
VObject is intended to be a full-featured Python package for parsing and
generating vCard and vCalendar files.

Currently, iCalendar files are supported and well tested. vCard 3.0 files are
supported, and all data should be imported, but only a few components are
understood in a sophisticated way.
Currently, iCalendar files are supported and well tested. vCard 3.0 files are
supported, and all data should be imported, but only a few components are
understood in a sophisticated way.

The [Calendar Server](http://calendarserver.org/) team has added VAVAILABILITY
support to VObject's iCalendar parsing.
The [Calendar Server](http://calendarserver.org/) team has added VAVAILABILITY
support to VObject's iCalendar parsing.

Please report bugs and issues directly on [GitHub](https://github.com/py-vobject/vobject/issues).

Expand All @@ -24,14 +24,14 @@ Useful scripts included with VObject:
* [change_tz](https://github.com/py-vobject/vobject/blob/master/vobject/change_tz.py): Take an iCalendar file with events in the wrong timezone, change all events or just UTC events into one of the timezones **pytz** supports. Requires [pytz](https://pypi.python.org/pypi/pytz/).

# History
VObject was originally developed in concert with the Open Source Application
VObject was originally developed in concert with the Open Source Application
Foundation's _Chandler_ project by Jeffrey Harris. Maintenance was later
passed to [Sameen Karim](https://github.com/skarim) and
passed to [Sameen Karim](https://github.com/skarim) and
[Will Percival](https://github.com/wpercy) at [Eventable](https://github.com/eventable).
After several years of inactivity, the project was revived under a dedicated
GitHub organization, with new volunteers.

**Please note**: the original repository at [eventable/vobject](https://github.com/eventable/vobject/)
**Please note**: the original repository at [eventable/vobject](https://github.com/eventable/vobject/)
is _unmaintained_. This project forked the latest code from that repository, after
attempts to revive the existing project with new maintainers were unsuccessful.

Expand All @@ -49,7 +49,7 @@ pip install vobject
Or download the package and run:

```
python setup.py install
pip install .
```

VObject requires Python 2.7 or higher, along with the [dateutil](https://pypi.python.org/pypi/python-dateutil/) and [six](https://pypi.python.org/pypi/six) packages.
Expand Down Expand Up @@ -268,7 +268,7 @@ serializing will add any required computable attributes (like 'VERSION')
params for EMAIL:
TYPE ['INTERNET']
FN: Jeffrey Harris
N: Jeffrey Harris
N: Jeffrey Harris
```

#### Parsing vCard objects
Expand Down
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[project]
name = "vobject"
dynamic = ["version"]
description = "A full-featured Python package for parsing and creating iCalendar and vCard files"
authors = [
{ name = "Jeffrey Harris", email = "jeffrey@osafoundation.org" },
]
maintainers = [
{ name = "David Arnold", email = "davida@pobox.com" },
]
license = { file = "LICENSE-2.0.txt" }
readme = "README.md"
lucc marked this conversation as resolved.
Show resolved Hide resolved

keywords = ["vobject", "icalendar", "vcard", "ics", "vcs", "hcalendar"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Text Processing",
]

dependencies = [
"python-dateutil >= 2.5.0; python_version < '3.10'",
"python-dateutil >= 2.7.0; python_version >= '3.10'",
"pytz",
"six",
]

[project.urls]
Homepage = "http://py-vobject.github.io/vobject/"
Repository = "https://github.com/py-vobject/vobject.git"
Download = 'https://github.com/py-vobject/vobject/releases'
Issues = "https://github.com/py-vobject/vobject/issues"

[project.scripts]
ics_diff = "vobject.ics_diff:main"
change_tz = "vobject.change_tz:main"

[tool.setuptools]
include-package-data = true
packages = ["vobject"]
platforms = ["any"]

[tool.setuptools.dynamic]
version = {attr = "vobject.VERSION"}

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

71 changes: 0 additions & 71 deletions setup.py

This file was deleted.