Project modified to be installable, installation files added
This commit is contained in:
+5
-1
@@ -1 +1,5 @@
|
|||||||
__pycache__
|
__pycache__/
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
|
*.egg-info/
|
||||||
|
*.pyc
|
||||||
|
|||||||
@@ -43,11 +43,17 @@
|
|||||||
Clone the repository and install:
|
Clone the repository and install:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://git.vmn.su/max/audio_splitter.git
|
git clone https://github.com/yourusername/audio-splitter.git
|
||||||
cd audio_splitter
|
cd audio-splitter
|
||||||
pip install .
|
pip install .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Now the `audio_splitter` command is available globally:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
audio_splitter input.mp3 tracks.txt
|
||||||
|
```
|
||||||
|
|
||||||
Or run directly without installation:
|
Or run directly without installation:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -75,7 +81,10 @@ Create a `tracks.txt` file with one track per line:
|
|||||||
### 2. Run the splitter
|
### 2. Run the splitter
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# If not installed
|
||||||
python -m audio_splitter.main my_album.mp3 tracks.txt
|
python -m audio_splitter.main my_album.mp3 tracks.txt
|
||||||
|
# If installed
|
||||||
|
audio_splitter my_album.mp3 tracks.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
@@ -258,7 +267,7 @@ Contributions are welcome! Please follow these steps:
|
|||||||
4. Push to the branch (`git push origin feature/amazing-feature`)
|
4. Push to the branch (`git push origin feature/amazing-feature`)
|
||||||
5. Open a Pull Request
|
5. Open a Pull Request
|
||||||
|
|
||||||
For bug reports or feature requests, please [open an issue](https://git.vmn.su/max/audio_splitter/issues).
|
For bug reports or feature requests, please [open an issue](https://github.com/yourusername/audio-splitter/issues).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -278,6 +287,4 @@ Distributed under the GPU GPL v3 or later. See [LICENSE](LICENSE) for more infor
|
|||||||
## 📬 Contact
|
## 📬 Contact
|
||||||
|
|
||||||
**Maintainer:** [Maxim Vershinin](https://git.vmn.su/max)
|
**Maintainer:** [Maxim Vershinin](https://git.vmn.su/max)
|
||||||
**Project Link:** [https://git.vmn.su/max/audio_splitter](https://git.vmn.su/max/audio_splitter)
|
**Project Link:** [https://git.vmn.su/max/audio-splitter](https://git.vmn.su/max/audio-splitter)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=61.0"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
with open("README.md", "r", encoding="utf-8") as f:
|
||||||
|
long_description = f.read()
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name="audio_splitter",
|
||||||
|
version="0.1.0",
|
||||||
|
author="Maxim Vershinin",
|
||||||
|
author_email="im@vmn.su",
|
||||||
|
description="Split audio files using a flexible tracklist",
|
||||||
|
long_description=long_description,
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
|
url="https://git.vmn.su/max/audio_splitter",
|
||||||
|
packages=find_packages(),
|
||||||
|
python_requires=">=3.8",
|
||||||
|
license="GNU General Public License v3 (GPLv3)",
|
||||||
|
classifiers=[
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
"Intended Audience :: End Users/Desktop",
|
||||||
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
|
],
|
||||||
|
entry_points={
|
||||||
|
"console_scripts": [
|
||||||
|
"audio_splitter = audio_splitter.main:main",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user