Commit e1d7f03b authored by dodgejcr's avatar dodgejcr

initial adding of files

parent 649952b8
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
end_of_line = lf
[*.bat]
indent_style = tab
end_of_line = crlf
[LICENSE]
insert_final_newline = false
[Makefile]
indent_style = tab
*.py[cod]
# C extensions
*.so
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
nosetests.xml
htmlcov
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
.idea
# Complexity
output/*.html
output/*/index.html
# Sphinx
docs/_build
# Config file for automatic testing at travis-ci.org
language: python
python:
- "3.5"
# command to install dependencies, e.g. pip install -r requirements.txt
install: pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script: python setup.py test
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y python3-gi
[main]
host = https://www.transifex.com
[manjaro-pacman-mirrors.pacman_mirrors]
source_file = locale/pacman_mirrors.pot
source_lang = en
type = PO
file_filter = locale/<lang>/LC_MESSAGES/pacman_mirrors.po
=======
Credits
=======
Development Lead
----------------
* Roland Singer <roland@manjaro.org>
* Esclapion
* philm
* Ramon Buldó <rbuldo@gmail.com>
Contributors
------------
None yet. Why not be the first?
============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/manjaro/pacman-mirrors/issues.
If you are reporting a bug, please include:
* Your operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.
Fix Bugs
~~~~~~~~
Look through the GitHub issues for bugs. Anything tagged with "bug"
is open to whoever wants to implement it.
Implement Features
~~~~~~~~~~~~~~~~~~
Look through the GitHub issues for features. Anything tagged with "feature"
is open to whoever wants to implement it.
Write Documentation
~~~~~~~~~~~~~~~~~~~
pacman-mirrors could always use more documentation, whether as part of the
official pacman-mirrors docs, in docstrings, or even on the web in blog posts,
articles, and such.
Submit Feedback
~~~~~~~~~~~~~~~
The best way to send feedback is to file an issue at https://github.com/manjaro/pacman-mirrors/issues.
If you are proposing a feature:
* Explain in detail how it would work.
* Keep the scope as narrow as possible, to make it easier to implement.
* Remember that this is a volunteer-driven project, and that contributions
are welcome :)
Get Started!
------------
Ready to contribute? Here's how to set up `pacman-mirrors` for local development.
1. Fork the `pacman-mirrors` repo on GitHub.
2. Clone your fork locally::
$ git clone git@github.com:your_name_here/pacman-mirrors.git
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
$ mkvirtualenv pacman-mirrors
$ cd pacman-mirrors/
$ python setup.py develop
4. Create a branch for local development::
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
$ flake8 pacman-mirrors tests
$ python setup.py test
$ tox
To get flake8 and tox, just pip install them into your virtualenv.
6. Commit your changes and push your branch to GitHub::
$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin name-of-your-bugfix-or-feature
7. Submit a pull request through the GitHub website.
Pull Request Guidelines
-----------------------
Before you submit a pull request, check that it meets these guidelines:
1. The pull request should include tests.
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 3.4+, and for PyPy. Check
https://travis-ci.org/manjaro/pacman-mirrors/pull_requests
and make sure that the tests pass for all supported Python versions.
Tips
----
To run a subset of tests::
$ python -m unittest tests.test_pacman_mirrors
.. :changelog:
History
-------
2.0 (2016-03-01)
---------------------
* Add translation support.
* Better error messages.
* --no-update option, to prevent updates when upgrading the package.
* Big refractor of code.
* Configuration file /etc/pacman-mirrors.conf is optional.
* Pep8 all the code in pacman_mirrors.py
* Reestructure the project.
* The Custom country created with interactive mode is now stored in /var/lib/pacman-mirrors/
* If a Custom country is found in /etc/pacman.d/mirrors/ its moved automatically to the new directory.
......@@ -631,8 +631,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
......
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst
include data/mirrors/*
include scripts/pacman-mirrors
recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-include docs *.rst conf.py Makefile make.bat
.PHONY: clean-pyc clean-build docs clean
help:
@echo "clean - remove all build, test, coverage and Python artifacts"
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "clean-test - remove test and coverage artifacts"
@echo "lint - check style with flake8"
@echo "test - run tests quickly with the default Python"
@echo "test-all - run tests on every Python version with tox"
@echo "coverage - check code coverage quickly with the default Python"
@echo "docs - generate Sphinx HTML documentation, including API docs"
@echo "release - package and upload a release"
@echo "dist - package"
@echo "install - install the package to the active Python's site-packages"
@echo "pot-file - extract messages to locale/pacman_mirrors.pot"
@echo "push-pot - push pot file to transifex"
@echo "pull-pot - pull all translations from transifex"
@echo "mo-files - generate .mo files"
clean: clean-build clean-pyc clean-test
clean-build:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test:
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
lint:
flake8 pacman_mirrors tests
test:
python setup.py test
test-all:
tox
coverage:
coverage run --source pacman_mirrors setup.py test
coverage report -m
coverage html
open htmlcov/index.html
docs:
rm -f docs/pacman-mirrors.rst
rm -f docs/modules.rst
sphinx-apidoc -o docs/ pacman-mirrors
$(MAKE) -C docs clean
$(MAKE) -C docs html
open docs/_build/html/index.html
release: clean
python setup.py sdist upload
python setup.py bdist_wheel upload
dist: clean
python setup.py sdist
python setup.py bdist_wheel
ls -l dist
install: clean mo-files
python setup.py install --root=$(DESTDIR) --optimize=1
pot-file:
python setup.py extract_messages --output-file locale/pacman_mirrors.pot
push-pot:
tx push -s
pull-po:
tx pull -a
mo-files:
python setup.py compile_catalog --directory locale --domain pacman_mirrors
===============================
pacman-mirrors
===============================
.. image:: https://img.shields.io/travis/manjaro/pacman-mirrors.svg
:target: https://travis-ci.org/manjaro/pacman-mirrors
Package that provides all mirrors for Manjaro Linux.
* Free software: GPL license
Features
--------
* TODO
##
## /etc/pacman-mirrors.conf
##
## Branch Pacman should use (stable, testing, unstable)
# Branch = stable
## Generation method
## 1) rank - rank mirrors depending on their access time
## 2) random - randomly generate the output mirrorlist
# Method = rank
## Specify to use only mirrors from specific a country.
## Can add multiple countries separated by a comma (ex: Germany,France)
## Empty means all
# OnlyCountry =
## Mirrors directory
# MirrorlistsDir = /etc/pacman.d/mirrors
## Output file
# OutputMirrorlist = /etc/pacman.d/mirrorlist
## When set to True prevents the regeneration of the mirrorlist if
## pacman-mirrors is invoked with the --no-update argument.
## Useful if you don't want the mirrorlist regenerated after a
## pacman-mirrors package upgrade.
# NoUpdate = False
\ No newline at end of file
##
## Pacman Mirrorlist
##
[Africa]
Server = http://mirror.is.co.za/mirrors/manjaro.org/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Australia]
Server = http://mirror.ventraip.net.au/Manjaro/$branch/$repo/$arch
Server = http://manjaro.uberglobalmirror.com/$branch/$repo/$arch
Server = http://manjaro.mirror.serversaustralia.com.au/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Belgium]
Server = http://ftp.belnet.be/manjaro/$branch/$repo/$arch
Server = http://manjaro.cu.be/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Brasil]
Server = http://www.las.ic.unicamp.br/pub/manjarolinux/$branch/$repo/$arch
Server = http://linorg.usp.br/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Bulgaria]
Server = http://mirrors.netix.net/manjaro/$branch/$repo/$arch
Server = http://manjaro.ipacct.com/manjaro/$branch/$repo/$arch
Server = http://manjaro.telecoms.bg/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Chile]
Server = http://manjaro.dcc.uchile.cl/$branch/$repo/$arch
Server = http://doge.ing.puc.cl/Mirrors/Manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[China]
Server = http://mirrors.ustc.edu.cn/manjaro/$branch/$repo/$arch
Server = http://mirror.bjtu.edu.cn/manjaro/$branch/$repo/$arch
Server = http://ftp.cuhk.edu.hk/pub/Linux/manjaro/$branch/$repo/$arch
Server = http://mirrors.tuna.tsinghua.edu.cn/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Colombia]
Server = http://mirror.edatel.net.co/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Costa_Rica]
Server = http://mirrors.ucr.ac.cr/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Ecuador]
Server = http://mirror.cedia.org.ec/manjaro/manjarolinux/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[France]
Server = http://manjarolinux.polymorf.fr/$branch/$repo/$arch
Server = http://mirror.lignux.com/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Germany]
Server = http://mirror.ragenetwork.de/manjaro/$branch/$repo/$arch
Server = http://ftp.halifax.rwth-aachen.de/manjaro/$branch/$repo/$arch
Server = http://ftp.tu-chemnitz.de/pub/linux/manjaro/$branch/$repo/$arch
Server = http://mirror.netzspielplatz.de/manjaro/packages/$branch/$repo/$arch
Server = http://mirror.netcologne.de/manjaro/$branch/$repo/$arch
Server = http://h1860261.stratoserver.net/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Greece]
Server = http://ftp.cc.uoc.gr/mirrors/linux/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Indonesia]
Server = http://kambing.ui.ac.id/manjaro/$branch/$repo/$arch
Server = http://kartolo.sby.datautama.net.id/manjaro/$branch/$repo/$arch
Server = http://jaran.undip.ac.id/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Ireland]
Server = http://ftp.heanet.ie/mirrors/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Italy]
Server = http://manjaro.mirror.garr.it/mirrors/manjaro/$branch/$repo/$arch
Server = http://ba.mirror.garr.it/mirrors/manjaro/$branch/$repo/$arch
Server = http://ct.mirror.garr.it/mirrors/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Japan]
Server = http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/$branch/$repo/$arch
Server = http://ftp.riken.jp/Linux/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Netherlands]
Server = http://ftp.nluug.nl/pub/os/Linux/distr/manjaro/$branch/$repo/$arch
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Philippines]
Server = http://mirror.rise.ph/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Portugal]
Server = http://ftp.dei.uc.pt/pub/linux/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Romania]
Server = http://mirrors.xservers.ro/manjaro/$branch/$repo/$arch
Server = http://mirrors.serverhost.ro/manjaro/packages/$branch/$repo/$arch
Server = http://ftp.lug.ro/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Russia]
Server = http://mirror.yandex.ru/mirrors/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Singapore]
Server = http://download.nus.edu.sg/mirror/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Sweden]
Server = http://ftp.lysator.liu.se/pub/manjaro/$branch/$repo/$arch
Server = http://mirror.zetup.net/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Taiwan]
Server = http://free.nchc.org.tw/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Turkey]
Server = http://ftp.linux.org.tr/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[United_Kingdom]
Server = http://repo.manjaro.org.uk/$branch/$repo/$arch
Server = http://www.mirrorservice.org/sites/repo.manjaro.org/repos/$branch/$repo/$arch
Server = http://mirror.catn.com/pub/manjaro/$branch/$repo/$arch
Server = http://manjaro.mirrors.uk2.net/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[United_States]
Server = http://mirror.dacentec.com/manjaro/$branch/$repo/$arch
Server = http://lug.mtu.edu/manjaro/$branch/$repo/$arch
Server = http://www.gtlib.gatech.edu/pub/manjaro/$branch/$repo/$arch
Server = http://mirror.jmu.edu/manjaro/$branch/$repo/$arch
Server = http://mirror.solarvps.com/manjaro/$branch/$repo/$arch
Server = http://mirror.nexcess.net/manjaro/$branch/$repo/$arch
Server = http://distro.ibiblio.org/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Africa]
Server = http://manjaro.mirror.ac.za/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Bangladesh]
Server = http://mirrors.ispros.com.bd/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Brasil]
Server = http://manjaro.fis.unb.br/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[France]
Server = http://mirror.finn.lu/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Germany]
Server = http://mirror.intercolo.net/manjaro/$branch/$repo/$arch
Server = http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/$branch/$repo/$arch
Server = http://mirror3.layerjet.com/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Indonesia]
Server = http://jaran.undip.ac.id/index.php/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Philippines]
Server = http://mirror.pregi.net/pub/Linux/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Romania]
Server = http://manjaro.mirrors.linux.ro/repos/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Taiwan]
Server = http://ftp.yzu.edu.tw/Linux/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[United_Kingdom]
Server = http://sorch.uk/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Denmark]
Server = http://mirrors.dotsrc.org/manjaro/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[Ecuador]
Server = http://mirror.uta.edu.ec/manjaro/manjarolinux/$branch/$repo/$arch
Server = http://mirror.espoch.edu.ec/manjaro/manjarolinux/$branch/$repo/$arch
##
## Pacman Mirrorlist
##
[South_Korea]
Server = http://mirror.premi.st/manjaro/$branch/$repo/$arch
# Makefile for Sphinx documentation
#