Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LucBerge committed Jun 8, 2023
2 parents 655db56 + a8f33b3 commit 447e30d
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CD

on:
workflow_dispatch:
push:
branches: [ master ]

jobs:
deploy_pypi:
name: Deploy Pypi
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@
Collect the email address of users affiliated to a given repository

## Installation
### From PyPi

Download from PyPi:
```python
pip install github-email-collector
```

### As a submodule

```
git submodule add https://github.com/LucBerge/github_email_collector.git
git submodule update --init
```

## Usage

From your python script
```python
from github_email_collector import EmailCollector
from github_email_collector import EmailCollector

email_collector = EmailCollector("MY_GITHUB_TOKEN", "owner/repo")
emails = email_collector.get_emails()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
description="Collect email address of users affiliated to a given repository",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/LucBerge/github-email-collector',
url='https://github.com/LucBerge/github_email_collector',
packages=setuptools.find_packages(),
install_requires=requirements
)
3 changes: 0 additions & 3 deletions src/email_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
import time
import traceback

GITHUB_TOKEN = "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"
REPOS = "bot4dofus/Datafus"

class GithubUser():

DEFAULT_COMMITS_LIMIT = 4
Expand Down

0 comments on commit 447e30d

Please sign in to comment.