audioarxiv 0.1.1rc58.post1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.github/workflows/CI.yml +1 -1
- audioarxiv-0.1.2/CODE_OF_CONDUCT.md +132 -0
- audioarxiv-0.1.2/CONTRIBUTING.md +80 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/LICENSE +1 -1
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/PKG-INFO +18 -3
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/README.md +11 -1
- audioarxiv-0.1.2/SECURITY.md +36 -0
- audioarxiv-0.1.2/SUPPORT.md +29 -0
- audioarxiv-0.1.2/codecov.yml +12 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/cspell.json +4 -1
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/release_notes.rst +8 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/pyproject.toml +7 -1
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/__init__.py +6 -6
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/audio/base.py +1 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/resources/paper.py +3 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/tools/main.py +31 -33
- audioarxiv-0.1.2/tests/audio/test_base.py +273 -0
- audioarxiv-0.1.2/tests/resources/test_paper.py +247 -0
- audioarxiv-0.1.2/tests/test_logging.py +86 -0
- audioarxiv-0.1.2/tests/tools/test_main.py +358 -0
- audioarxiv-0.1.1rc58.post1/CODE_OF_CONDUCT.md +0 -9
- audioarxiv-0.1.1rc58.post1/SUPPORT.md +0 -7
- audioarxiv-0.1.1rc58.post1/tests/audio/test_base.py +0 -120
- audioarxiv-0.1.1rc58.post1/tests/resources/test_paper.py +0 -66
- audioarxiv-0.1.1rc58.post1/tests/tools/test_main.py +0 -101
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.devcontainer/Dockerfile +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.devcontainer/devcontainer.json +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.github/dependabot.yml +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.github/template-sync.yml +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.github/workflows/publish.yml +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.github/workflows/schedule-update-actions.yml +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.github/workflows/semantic-pr-check.yml +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.github/workflows/sphinx.yml +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.github/workflows/template-sync.yml +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.gitignore +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.pre-commit-config.yaml +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.pypirc +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.vscode/launch.json +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/.vscode/settings.json +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/.gitignore +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/Makefile +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/conf.py +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/devcontainer.md +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/developer.md +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/index.rst +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/installation.rst +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/make.bat +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/pre-commit-config.md +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/pylint.md +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/pyproject.md +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/requirements.txt +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/templates/custom-class-template.rst +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/templates/custom-module-template.rst +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/user_guide.rst +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/vscode.md +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/docs/workflows.md +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/audio/__init__.py +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/preprocess/__init__.py +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/preprocess/article.py +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/preprocess/math_equation.py +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/resources/__init__.py +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/src/audioarxiv/tools/__init__.py +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/tests/preprocess/test_article.py +0 -0
- {audioarxiv-0.1.1rc58.post1 → audioarxiv-0.1.2}/tests/preprocess/test_math_equation.py +0 -0
@@ -0,0 +1,132 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
10
|
+
identity and orientation.
|
11
|
+
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
13
|
+
diverse, inclusive, and healthy community.
|
14
|
+
|
15
|
+
## Our Standards
|
16
|
+
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
18
|
+
community include:
|
19
|
+
|
20
|
+
- Demonstrating empathy and kindness toward other people
|
21
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
22
|
+
- Giving and gracefully accepting constructive feedback
|
23
|
+
- Accepting responsibility and apologizing to those affected by our mistakes,
|
24
|
+
and learning from the experience
|
25
|
+
- Focusing on what is best not just for us as individuals, but for the overall
|
26
|
+
community
|
27
|
+
|
28
|
+
Examples of unacceptable behavior include:
|
29
|
+
|
30
|
+
- The use of sexualized language or imagery, and sexual attention or advances of
|
31
|
+
any kind
|
32
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
33
|
+
- Public or private harassment
|
34
|
+
- Publishing others' private information, such as a physical or email address,
|
35
|
+
without their explicit permission
|
36
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
37
|
+
professional setting
|
38
|
+
|
39
|
+
## Enforcement Responsibilities
|
40
|
+
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
44
|
+
or harmful.
|
45
|
+
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
49
|
+
decisions when appropriate.
|
50
|
+
|
51
|
+
## Scope
|
52
|
+
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
54
|
+
an individual is officially representing the community in public spaces.
|
55
|
+
Examples of representing our community include using an official email address,
|
56
|
+
posting via an official social media account, or acting as an appointed
|
57
|
+
representative at an online or offline event.
|
58
|
+
|
59
|
+
## Enforcement
|
60
|
+
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
62
|
+
reported to the community leaders responsible for enforcement at
|
63
|
+
[INSERT CONTACT METHOD].
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
65
|
+
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
67
|
+
reporter of any incident.
|
68
|
+
|
69
|
+
## Enforcement Guidelines
|
70
|
+
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
73
|
+
|
74
|
+
### 1. Correction
|
75
|
+
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
77
|
+
unprofessional or unwelcome in the community.
|
78
|
+
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
82
|
+
|
83
|
+
### 2. Warning
|
84
|
+
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
86
|
+
actions.
|
87
|
+
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
93
|
+
ban.
|
94
|
+
|
95
|
+
### 3. Temporary Ban
|
96
|
+
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
98
|
+
sustained inappropriate behavior.
|
99
|
+
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
101
|
+
communication with the community for a specified period of time. No public or
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
104
|
+
Violating these terms may lead to a permanent ban.
|
105
|
+
|
106
|
+
### 4. Permanent Ban
|
107
|
+
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
111
|
+
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
113
|
+
community.
|
114
|
+
|
115
|
+
## Attribution
|
116
|
+
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
118
|
+
version 2.1, available at
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
120
|
+
|
121
|
+
Community Impact Guidelines were inspired by
|
122
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
123
|
+
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
127
|
+
|
128
|
+
[homepage]: https://www.contributor-covenant.org
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
130
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
131
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
132
|
+
[translations]: https://www.contributor-covenant.org/translations
|
@@ -0,0 +1,80 @@
|
|
1
|
+
# Contributing to audioarxiv
|
2
|
+
|
3
|
+
🎉 Thank you for your interest in contributing to `audioarxiv`! 🎧📚
|
4
|
+
Your ideas, fixes, and improvements are welcome and appreciated.
|
5
|
+
|
6
|
+
Whether you’re fixing a typo, reporting a bug, suggesting a feature, or submitting a pull request—this guide will help you get started.
|
7
|
+
|
8
|
+
## 📌 How to Contribute
|
9
|
+
|
10
|
+
1. Open an Issue
|
11
|
+
|
12
|
+
- Have a question, bug report, or feature suggestion? [Open an issue](https://github.com/isaac-cf-wong/audioarxiv/issues/new/choose) and describe your idea clearly.
|
13
|
+
- Check for existing issues before opening a new one.
|
14
|
+
|
15
|
+
2. Fork and Clone the Repository
|
16
|
+
|
17
|
+
```shell
|
18
|
+
git clone git@github.com:<your-username>/audioarxiv.git
|
19
|
+
cd audioarxiv
|
20
|
+
```
|
21
|
+
|
22
|
+
3. Set Up Your Environment
|
23
|
+
|
24
|
+
We recommend using a virtual environment:
|
25
|
+
|
26
|
+
```shell
|
27
|
+
python -m venv venv
|
28
|
+
source venv/bin/activate # on Windows: venv\Scripts\activate
|
29
|
+
pip install -e ".[dev]"
|
30
|
+
```
|
31
|
+
|
32
|
+
4. Set Up Pre-commit Hooks
|
33
|
+
|
34
|
+
We use pre-commit to ensure code quality and consistency. After installing dependencies, run:
|
35
|
+
|
36
|
+
```shell
|
37
|
+
pre-commit install
|
38
|
+
```
|
39
|
+
|
40
|
+
This ensures checks like code formatting, linting, and basic hygiene run automatically when you commit.
|
41
|
+
|
42
|
+
5. Create a New Branch
|
43
|
+
|
44
|
+
Give it a meaningful name like fix-typo-in-docs or feature-add-summary-option.
|
45
|
+
|
46
|
+
6. Make Changes
|
47
|
+
|
48
|
+
- Write clear, concise, and well-documented code.
|
49
|
+
- Follow [PEP 8](https://pep8.org/) style conventions.
|
50
|
+
- Add or update unit tests when applicable.
|
51
|
+
|
52
|
+
7. Run Tests
|
53
|
+
|
54
|
+
Ensure that all tests pass before opening a pull request:
|
55
|
+
|
56
|
+
```shell
|
57
|
+
pytest
|
58
|
+
```
|
59
|
+
|
60
|
+
8. Open a Pull Request
|
61
|
+
|
62
|
+
Clearly describe the motivation and scope of your change. Link it to the relevant issue if applicable.
|
63
|
+
The pull request titles should match the [Conventional Commits spec](https://www.conventionalcommits.org/).
|
64
|
+
|
65
|
+
## 💡 Tips
|
66
|
+
|
67
|
+
- Be kind and constructive in your communication.
|
68
|
+
- Keep PRs focused and atomic—smaller changes are easier to review.
|
69
|
+
- Document new features and update existing docs if needed.
|
70
|
+
- Tag your PR with relevant labels if you can.
|
71
|
+
|
72
|
+
## 📜 Licensing
|
73
|
+
|
74
|
+
By contributing, you agree that your contributions will be licensed under the project’s MIT License.
|
75
|
+
|
76
|
+
---
|
77
|
+
|
78
|
+
Thanks again for being part of the audioarxiv community!
|
79
|
+
|
80
|
+
---
|
@@ -1,12 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: audioarxiv
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.2
|
4
4
|
Summary: Turn arXiv papers into audio. audioarxiv lets you fetch the research papers from arXiv and read them aloud.
|
5
5
|
Author-email: "Isaac C. F. Wong" <isaac.cf.wong@gmail.com>
|
6
6
|
Requires-Python: >=3.9
|
7
7
|
Description-Content-Type: text/markdown
|
8
8
|
Classifier: Development Status :: 3 - Alpha
|
9
|
-
Classifier: Intended Audience ::
|
9
|
+
Classifier: Intended Audience :: Science/Research
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
11
11
|
Classifier: Programming Language :: Python :: 3 :: Only
|
12
12
|
Classifier: Programming Language :: Python :: 3.9
|
@@ -22,6 +22,10 @@ Requires-Dist: sympy
|
|
22
22
|
Requires-Dist: nltk
|
23
23
|
Requires-Dist: pandas
|
24
24
|
Requires-Dist: platformdirs
|
25
|
+
Requires-Dist: pytest ; extra == "dev"
|
26
|
+
Requires-Dist: pre-commit ; extra == "dev"
|
27
|
+
Requires-Dist: black ; extra == "dev"
|
28
|
+
Requires-Dist: flake8 ; extra == "dev"
|
25
29
|
Requires-Dist: pyspark>=3.0.0 ; extra == "spark"
|
26
30
|
Requires-Dist: bandit[toml]==1.8.3 ; extra == "test"
|
27
31
|
Requires-Dist: black==25.1.0 ; extra == "test"
|
@@ -45,6 +49,7 @@ Project-URL: Homepage, https://github.com/isaac-cf-wong/audioarxiv
|
|
45
49
|
Project-URL: Release Notes, https://github.com/isaac-cf-wong/audioarxiv/releases
|
46
50
|
Project-URL: Source, https://github.com/isaac-cf-wong/audioarxiv
|
47
51
|
Project-URL: Tracker, https://github.com/isaac-cf-wong/audioarxiv/issues
|
52
|
+
Provides-Extra: dev
|
48
53
|
Provides-Extra: spark
|
49
54
|
Provides-Extra: test
|
50
55
|
|
@@ -114,5 +119,15 @@ The settings are saved, so you only need to provide your preferred settings once
|
|
114
119
|
|
115
120
|
## Contributing
|
116
121
|
|
117
|
-
|
122
|
+
Contributions and suggestions are welcome! Whether it's fixing bugs, improving documentation, or adding new features, your help is appreciated.
|
123
|
+
|
124
|
+
Please read our [Code of Conduct](CODE_OF_CONDUCT.md) before contributing.
|
125
|
+
|
126
|
+
To get started:
|
127
|
+
|
128
|
+
- Fork the repository
|
129
|
+
- Create a new branch for your changes
|
130
|
+
- Submit a pull request
|
131
|
+
|
132
|
+
If you're unsure where to begin, feel free to open an issue or ask for guidance!
|
118
133
|
|
@@ -64,4 +64,14 @@ The settings are saved, so you only need to provide your preferred settings once
|
|
64
64
|
|
65
65
|
## Contributing
|
66
66
|
|
67
|
-
|
67
|
+
Contributions and suggestions are welcome! Whether it's fixing bugs, improving documentation, or adding new features, your help is appreciated.
|
68
|
+
|
69
|
+
Please read our [Code of Conduct](CODE_OF_CONDUCT.md) before contributing.
|
70
|
+
|
71
|
+
To get started:
|
72
|
+
|
73
|
+
- Fork the repository
|
74
|
+
- Create a new branch for your changes
|
75
|
+
- Submit a pull request
|
76
|
+
|
77
|
+
If you're unsure where to begin, feel free to open an issue or ask for guidance!
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
We will support the latest stable release of `audioarxiv`. Please make sure you are using the most recent version before reporting a security issue.
|
4
|
+
|
5
|
+
| Version | Supported |
|
6
|
+
| ------- | --------- |
|
7
|
+
| 0.1.x | ✅ |
|
8
|
+
| < 0.1 | ❌ |
|
9
|
+
|
10
|
+
## Reporting a Vulnerability
|
11
|
+
|
12
|
+
If you discover a security vulnerability in `audioarxiv`, we encourage you to report it responsibly.
|
13
|
+
|
14
|
+
**Please do not open a public issue.** Instead, contact us directly via email:
|
15
|
+
|
16
|
+
📧 [isaac.cf.wong@gmail.com](mailto:isaac.cf.wong@gmail.com)
|
17
|
+
|
18
|
+
Include as much information as possible to help us understand and reproduce the issue quickly and accurately:
|
19
|
+
|
20
|
+
- Description of the vulnerability
|
21
|
+
- Steps to reproduce
|
22
|
+
- Affected versions
|
23
|
+
- Your operating system and Python version
|
24
|
+
|
25
|
+
We aim to respond to all security-related emails within **3–5 business days**.
|
26
|
+
|
27
|
+
## Responsible Disclosure Process
|
28
|
+
|
29
|
+
1. Submit the vulnerability report via email (see above).
|
30
|
+
2. We will acknowledge receipt and begin investigation.
|
31
|
+
3. We will work on a fix and prepare a patch release.
|
32
|
+
4. Once the issue is resolved, we will publish an advisory and credit you (if desired).
|
33
|
+
|
34
|
+
## Thanks
|
35
|
+
|
36
|
+
We value the security of our users and appreciate responsible disclosures. Thank you for helping make `audioarxiv` better and safer!
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Support
|
2
|
+
|
3
|
+
Thank you for your interest in **audioarxiv**!
|
4
|
+
|
5
|
+
If you have questions, suggestions, or need help using the project, here are some ways to get support:
|
6
|
+
|
7
|
+
## 💬 Ask a Question
|
8
|
+
|
9
|
+
If you're experiencing a problem or have a question about how to use `audioarxiv`, please open a [GitHub Discussion](https://github.com/isaac-cf-wong/audioarxiv/discussions) or [Issue](https://github.com/isaac-cf-wong/audioarxiv/issues), depending on the nature of your question.
|
10
|
+
|
11
|
+
- Use **Discussions** for general questions, ideas, or usage help.
|
12
|
+
- Use **Issues** for reporting bugs or requesting new features.
|
13
|
+
|
14
|
+
## 🐛 Found a Bug?
|
15
|
+
|
16
|
+
Please check if your issue has already been reported. If not, create a [new issue](https://github.com/isaac-cf-wong/audioarxiv/issues/new/choose) with:
|
17
|
+
|
18
|
+
- A clear and descriptive title.
|
19
|
+
- Steps to reproduce the problem.
|
20
|
+
- Relevant logs or error messages.
|
21
|
+
- The version of Python and `audioarxiv` you're using.
|
22
|
+
|
23
|
+
## 🙋 Want to Contribute?
|
24
|
+
|
25
|
+
Contributions are welcome! Please check out the [Contributing Guide](CONTRIBUTING.md) and our [Code of Conduct](CODE_OF_CONDUCT.md) to get started.
|
26
|
+
|
27
|
+
---
|
28
|
+
|
29
|
+
We appreciate your support and interest in the project!
|
@@ -0,0 +1,12 @@
|
|
1
|
+
coverage:
|
2
|
+
status:
|
3
|
+
project:
|
4
|
+
default:
|
5
|
+
target: auto # auto compares coverage to the previous base commit
|
6
|
+
comment: #this is a top-level key
|
7
|
+
layout: " diff, flags, files"
|
8
|
+
behavior: default
|
9
|
+
require_changes: false # if true: only post the comment if coverage changes
|
10
|
+
require_base: false # [true :: must have a base report to post]
|
11
|
+
require_head: true # [true :: must have a head report to post]
|
12
|
+
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]]
|
@@ -8,6 +8,14 @@ This page summarizes the key updates and changes in each release.
|
|
8
8
|
For the full history and additional context, visit the
|
9
9
|
`GitHub Releases <https://github.com/isaac-cf-wong/audioarxiv/releases>`_ page.
|
10
10
|
|
11
|
+
Version 0.1.2 (2025-04-20)
|
12
|
+
--------------------------
|
13
|
+
- Update the LICENSE and the intended audience.
|
14
|
+
- Update text in SUPPORT.md, CODE_OF_CONDUCT.md, CONTRIBUTING.md, and SECURITY.md.
|
15
|
+
- Add more unit tests to increase coverage.
|
16
|
+
|
17
|
+
**Full Changelog**: https://github.com/isaac-cf-wong/audioarxiv/compare/v0.1.1...v0.1.2
|
18
|
+
|
11
19
|
Version 0.1.1 (2025-04-20)
|
12
20
|
--------------------------
|
13
21
|
- Update the description of the package in pyproject.toml.
|
@@ -11,7 +11,7 @@ description = "Turn arXiv papers into audio. audioarxiv lets you fetch the resea
|
|
11
11
|
readme = "README.md"
|
12
12
|
classifiers = [
|
13
13
|
"Development Status :: 3 - Alpha",
|
14
|
-
"Intended Audience ::
|
14
|
+
"Intended Audience :: Science/Research",
|
15
15
|
"License :: OSI Approved :: MIT License",
|
16
16
|
"Programming Language :: Python :: 3 :: Only",
|
17
17
|
"Programming Language :: Python :: 3.9",
|
@@ -55,6 +55,12 @@ test = [
|
|
55
55
|
"pytest-github-actions-annotate-failures",
|
56
56
|
"shellcheck-py==0.10.0.1"
|
57
57
|
]
|
58
|
+
dev = [
|
59
|
+
"pytest",
|
60
|
+
"pre-commit",
|
61
|
+
"black",
|
62
|
+
"flake8"
|
63
|
+
]
|
58
64
|
|
59
65
|
[project.urls]
|
60
66
|
Documentation = "https://isaac-cf-wong.github.io/audioarxiv"
|
@@ -24,7 +24,7 @@ from pandas import DataFrame
|
|
24
24
|
|
25
25
|
from . import audio, preprocess, resources
|
26
26
|
|
27
|
-
__version__ = "0.1.
|
27
|
+
__version__ = "0.1.2"
|
28
28
|
|
29
29
|
|
30
30
|
def get_version_information() -> str:
|
@@ -111,11 +111,11 @@ def env_package_list(as_dataframe: bool = False) -> list | DataFrame:
|
|
111
111
|
|
112
112
|
Returns:
|
113
113
|
Union[list, DataFrame]:
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
114
|
+
If ``as_dataframe=False`` is given, the output is a `list` of `dict`,
|
115
|
+
one for each package, at least with ``'name'`` and ``'version'`` keys
|
116
|
+
(more if `conda` is used).
|
117
|
+
If ``as_dataframe=True`` is given, the output is a `DataFrame`
|
118
|
+
created from the `list` of `dicts`.
|
119
119
|
"""
|
120
120
|
prefix = sys.prefix
|
121
121
|
pkgs = []
|
@@ -43,6 +43,7 @@ def validate_audio_arguments(rate: float, volume: float, voice: int | str | None
|
|
43
43
|
logger.error('Invalid voice ID = %s. Keeping current voice.', voice)
|
44
44
|
elif voice is not None:
|
45
45
|
logger.error('Unsupported datatype of voice = %s. It must be either int or str.', type(voice))
|
46
|
+
voice = None
|
46
47
|
if pause_seconds < 0:
|
47
48
|
pause_seconds = 0.1
|
48
49
|
logger.error('pause = %s must be non-negative. Keeping the current pause.', pause_seconds)
|
@@ -172,6 +172,9 @@ class Paper:
|
|
172
172
|
list: A list of sections. Each section is a dict with the header as the key and the content as the value.
|
173
173
|
"""
|
174
174
|
if len(self._sections) == 0:
|
175
|
+
if self.paper is None:
|
176
|
+
logger.error('Paper is None. Cannot download PDF.')
|
177
|
+
return self._sections
|
175
178
|
with tempfile.NamedTemporaryFile() as tmp:
|
176
179
|
filename = tmp.name
|
177
180
|
self.download_pdf(filename=filename)
|
@@ -57,7 +57,6 @@ def initialize_configuration(args: configargparse.Namespace) -> tuple:
|
|
57
57
|
os.makedirs(config_dir, exist_ok=True)
|
58
58
|
config_file = 'config.json'
|
59
59
|
config_path = os.path.join(config_dir, config_file)
|
60
|
-
|
61
60
|
# Default settings.
|
62
61
|
settings = {
|
63
62
|
'audio': {
|
@@ -159,36 +158,35 @@ def main():
|
|
159
158
|
paper = Paper(**settings['paper'])
|
160
159
|
|
161
160
|
# Search the paper.
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
161
|
+
# Print the information
|
162
|
+
logger.info('Configuration file: %s', config_path)
|
163
|
+
logger.info('Audio settings')
|
164
|
+
for key, value in settings['audio'].items():
|
165
|
+
logger.info('%s: %s', key, value)
|
166
|
+
|
167
|
+
logger.info('Paper settings')
|
168
|
+
for key, value in settings['paper'].items():
|
169
|
+
logger.info('%s: %s', key, value)
|
170
|
+
|
171
|
+
logger.info('Searching arxiv: %s...', args.id)
|
172
|
+
paper.search_by_arxiv_id(arxiv_id=args.id)
|
173
|
+
# Get the sections
|
174
|
+
sections = paper.sections
|
175
|
+
if args.output is None:
|
176
|
+
for section in sections:
|
177
|
+
audio.read_article(section['header'])
|
178
|
+
time.sleep(1)
|
179
|
+
for content in section['content']:
|
180
|
+
audio.read_article(content)
|
180
181
|
time.sleep(1)
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
logger.info('Saving audio...')
|
193
|
-
audio.save_article(filename=args.output, article=article)
|
194
|
-
logger.info('Audio is saved to %s.', args.output)
|
182
|
+
else:
|
183
|
+
article = []
|
184
|
+
for section in sections:
|
185
|
+
if section['header'] is not None:
|
186
|
+
article.append(section['header'])
|
187
|
+
if section['content'] is not None:
|
188
|
+
article += section['content']
|
189
|
+
article = " ".join(article)
|
190
|
+
logger.info('Saving audio...')
|
191
|
+
audio.save_article(filename=args.output, article=article)
|
192
|
+
logger.info('Audio is saved to %s.', args.output)
|