1. clean up confusing comment in setup.py; 2. add developer/contributor documentation in README.md
Change-Id: I7bd0bbbfe266032e11e09d260c37edf524339009
This commit is contained in:
parent
8cc9b72e83
commit
9777aa9df8
39
README.md
39
README.md
@ -14,6 +14,45 @@ tools (Cobbler, Chef, Ansible) and allows third-parties (vendors) plugins for ha
|
||||
|
||||
##Quick Guide to Developers
|
||||
|
||||
### Get started with coding and contributing
|
||||
|
||||
** Before everything, setup your environment:**
|
||||
|
||||
i. Make sure MySQL is installed on your development box:
|
||||
|
||||
e.g., ```brew install mysql``` (for your Mac OSX box)
|
||||
|
||||
ii. Dedicatedly create a virtual environment for your development. You can use [virtualenvwrapper](http://virtualenvwrapper.readthedocs.org/) to help you manage your virtual environment.
|
||||
|
||||
```$mkvirtualenv compass-core``` (skip this if you already created compass-core-env)
|
||||
|
||||
```$workon compass-core``` (get into compass-core-env)
|
||||
|
||||
_Note: the above assumes you use virtualenvwrapper to manage your virtualenv_
|
||||
|
||||
** 1. Checkout source **
|
||||
|
||||
(compass-core-env)$git checkout https://github.com/stackforge/compass-core.git
|
||||
|
||||
** 2. Run the tests making sure you are working on a clean and working code base** (i.e., did someone else break the code)
|
||||
|
||||
``` (compass-core-env)$tox -r ```
|
||||
|
||||
** 3. Write your change, and make sure test your code thoroughly** (otherwise, reviewers won't approve it)
|
||||
|
||||
``` (compass-core-env)$git branch -b [TOPIC]```
|
||||
|
||||
working, working, working on the [TOPIC] branch ...
|
||||
|
||||
``` (compass-core-env)$tox -r ``` (make sure your new code still works)
|
||||
|
||||
** 4. Submit for review **
|
||||
|
||||
```(compass-core-env)$git review ```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Directories (How codebase is organized)
|
||||
|
||||
|
34
setup.py
34
setup.py
@ -14,20 +14,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""Bootstrap setuptools installation
|
||||
|
||||
If you want to use setuptools in your package's setup.py, just include this
|
||||
file in the same directory with it, and add this to the top of your setup.py::
|
||||
|
||||
from ez_setup import use_setuptools
|
||||
use_setuptools()
|
||||
|
||||
If you want to require a specific version of setuptools, set a download
|
||||
mirror, or use an alternate download directory, you can do so by supplying
|
||||
the appropriate options to ``use_setuptools()``.
|
||||
|
||||
This file can also be run as a script to install or upgrade setuptools.
|
||||
"""
|
||||
|
||||
"""setup script."""
|
||||
try:
|
||||
@ -45,6 +31,10 @@ import os
|
||||
import sys
|
||||
|
||||
|
||||
# This helps python setup.py test command to utilize tox
|
||||
# See the instruction at https://testrun.org/tox/latest/example/basic.html\
|
||||
# #integration-with-setuptools-distribute-test-commands
|
||||
|
||||
class Tox(TestCommand):
|
||||
"""Tox to do the setup."""
|
||||
|
||||
@ -59,11 +49,9 @@ class Tox(TestCommand):
|
||||
sys.exit(errno)
|
||||
|
||||
|
||||
INSTALL_REQUIRES_DIR = os.path.join(
|
||||
INSTALL_REQUIRES_FILE = os.path.join(
|
||||
os.path.dirname(__file__), 'requirements.txt')
|
||||
|
||||
|
||||
with open(INSTALL_REQUIRES_DIR, 'r') as requires_file:
|
||||
with open(INSTALL_REQUIRES_FILE, 'r') as requires_file:
|
||||
REQUIREMENTS = [line.strip() for line in requires_file if line != '\n']
|
||||
|
||||
DATA_FILES_DIR = os.path.join(
|
||||
@ -80,10 +68,10 @@ setup(
|
||||
version='0.1.0',
|
||||
|
||||
# general info
|
||||
description='Open Deployment System for zero touch installation',
|
||||
long_description='Open Deployment System for zero touch installation',
|
||||
author='Compass Dev Group, Huawei Cloud',
|
||||
author_email='shuo.yang@huawei.com',
|
||||
description="""Compass: automation framework of
|
||||
system deployment on baremetal""",
|
||||
author='Compass Development Group',
|
||||
author_email='dev@syscompass.org',
|
||||
url='https://github.com/stackforge/compass-core',
|
||||
download_url='',
|
||||
|
||||
@ -92,7 +80,7 @@ setup(
|
||||
packages=find_packages(exclude=['compass.tests']),
|
||||
include_package_data=True,
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Development Status :: 4 - Beta',
|
||||
'Environment :: Console',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: Information Technology',
|
||||
|
Loading…
Reference in New Issue
Block a user