Skip to content

Commit

Permalink
Merge pull request #9 from lpirl/add-setup.py
Browse files Browse the repository at this point in the history
add setup.py, document installation via pip (only) in README
  • Loading branch information
rvojcik committed Jan 14, 2021
2 parents 9506e51 + b114924 commit 436597f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ Primary used for remote backup of projects in GitLab.com to private storage serv
Code was modified to work with Python3, not longer compatible with Python2.

## Prerequisite
* Python Requests library, `sudo pip install requests`
* Configured Gitlab API Token, https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html

## Install

Simple just clone the project.
Simply install via pip:

`git clone https://github.com/rvojcik/gitlab-project-export`
`pip install git+https://github.com/rvojcik/gitlab-project-export`

or clone the project and install dependecies manually:

```
git clone https://github.com/rvojcik/gitlab-project-export
pip install pyyaml
pip install requests
```

Prepare and edit your config file

Expand Down
31 changes: 31 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from os.path import join as path_join, dirname
from setuptools import setup, find_packages

version = '0.1'
README = path_join(dirname(__file__), 'README.md')
long_description = open(README).read()
setup(
name='gitlab-project-export',
version=version,
description=('Simple python project for exporting gitlab projects '
'with Export Project feature in GitLab API.'),
long_description=long_description,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python',
],
author='Robert Vojcik',
author_email='robert@vojcik.net',
url='https://github.com/rvojcik/gitlab-project-export',
download_url='https://github.com/rvojcik/gitlab-project-export/archive/master.tar.gz',
packages=(['lib']),
install_requires = [
'pyyaml',
'requests',
],
scripts=[
'gitlab-project-export.py',
'gitlab-project-import.py',
],
)

0 comments on commit 436597f

Please sign in to comment.