aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-04 23:40:31 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-04 23:40:31 +0300
commite56c47e4fcd88abb79e5d1347c75b72b624b213d (patch)
treeef0407d1604207eb3c935e313bcae2e242ff8e9a
parentccf03783060a21e8fa63c417f148cfe8ed2c09cc (diff)
pypi
-rw-r--r--.gitignore5
-rw-r--r--README.md12
-rw-r--r--dbpl/__init__.py1
-rw-r--r--dbpl/dbpl.py (renamed from dbpl.py)0
-rw-r--r--setup.cfg22
5 files changed, 34 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 09abc35..8d77ce9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
.idea
venv/
-__pycache__ \ No newline at end of file
+__pycache__
+build/
+dbpl.egg-info
+dist/ \ No newline at end of file
diff --git a/README.md b/README.md
index d1a5c54..bd26527 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,13 @@ format, created by my absolute favorite desktop audio player
I created it to be able to edit paths to audio files in the playlist, although
it's possible to change any tracks properties.
+## Installation
+
+It's available in Pypi:
+```
+pip install dbpl
+```
+
## Example
Let's imagine you have a large `.dbpl` playlist with hundreds of items, and you want
@@ -31,11 +38,6 @@ if __name__ == '__main__':
playlist.save(args.output)
```
-Then use it:
-```
-python3 ./script.py --input old.dbpl --output new.dbpl
-```
-
## License
BSD-2c \ No newline at end of file
diff --git a/dbpl/__init__.py b/dbpl/__init__.py
new file mode 100644
index 0000000..df8e0b6
--- /dev/null
+++ b/dbpl/__init__.py
@@ -0,0 +1 @@
+from .dbpl import Track, Playlist, Flag
diff --git a/dbpl.py b/dbpl/dbpl.py
index 153cf21..153cf21 100644
--- a/dbpl.py
+++ b/dbpl/dbpl.py
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..6dd980e
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,22 @@
+[metadata]
+name = dbpl
+version = 1.0.1
+author = Evgeny Zinoviev
+author_email = me@ch1p.io
+description =
+long_description = file: README.md
+license = BSD
+license_file = LICENSE
+long_description_content_type = text/markdown
+url = https://github.com/gch1p/deadbeef-playlist.git
+project_urls =
+ Bug Tracker = https://github.com/gch1p/deadbeef-playlist/issues
+classifiers =
+ Programming Language :: Python :: 3
+ License :: OSI Approved :: BSD License
+ Operating System :: OS Independent
+
+[options]
+packages = dbpl
+python_requires = >=3.6
+include_package_data = True \ No newline at end of file